package com.gnerv.battle.boot.module.base.model.dto;

import com.gnerv.battle.boot.module.base.model.bo.DictBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class DictUpdateDTO {

    private String ukId;
    private String code;
    private String name;
    private String status;
    private Integer sort;

    public DictBO toDictBO() {
        DictBO dictBO = new DictBO();
        BeanUtils.copyProperties(this, dictBO);
        return dictBO;
    }
}